package com.gh.ggkt.vod.controller;

import com.gh.Result;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Eric Fang
 * @date 2022/9/3 16:35
 */
@RestController
@RequestMapping("/admin/vod/user")
public class UserLoginController {

    @PostMapping("login")
    public Result login() {
        Map map = new HashMap();
        map.put("token", "admin-token");
        return Result.ok(map);
    }

    @GetMapping("info")
    public Result info(){
        Map map = new HashMap();
        map.put("roles", "admin");
        map.put("introduction","hello world");
        map.put("avatar","https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif");
        map.put("name","super admin");
        return Result.ok(map);
    }

}
